package com.blog.service;

import com.blog.dao.IUserDao;
import com.blog.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Author:  Wu Yujie
 * Email:  coffee377@dingtalk.com
 * Time:  2017/02/27 11:54
 */
//@Service
public class IUserServiceImpl implements IUserService {
    @Resource
    private IUserDao userDao;

    @Override
    public boolean existUser(String userName) {
        return userDao.existUser(userName);
    }

    @Override
    public User loginIn(String userName, String password) {
        return userDao.loginIn(userName,password);
    }
}
